package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务业务对象 sys_business
 *
 * @author chenyun
 * @date 2022-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("业务业务对象")
public class SysBusinessBo extends BaseEntity {

    /**
     * 编号
     */
    @EQ
    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模块
     */
    @EQ
    @ApiModelProperty(value = "模块", required = true)
    @NotBlank(message = "模块不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizModule;

    /**
     * 编码
     */
    @EQ
    @ApiModelProperty(value = "编码", required = true)
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizCode;

    /**
     * 业务名
     */
    @LikeRight
    @ApiModelProperty(value = "业务名", required = true)
    @NotBlank(message = "业务名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizName;

    /**
     * 前缀
     */
    @EQ
    @ApiModelProperty(value = "前缀", required = true)
    @NotBlank(message = "前缀不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizPrefix;

    /**
     * 状态
     */
    @EQ
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @EQ
    @ApiModelProperty(value = "备注")
    private String remark;


}
